package com.jt.demo8_anno;

import org.springframework.stereotype.Component;

@Component //将该对象交给Spring容器管理
//key:tiger  value:反射的对象
public class Tiger implements Pet{

    @Override
    public void hello(){
        System.out.println("卧槽,销户");
    }
}
